function getPW(){
	var numbers="0123456789";
	var lowercase="abcdefghijklmnopqrstuvwxyz";
	var uppercase="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
	var symbols="!@#$%^&?~.,=+-_";
	var number_flag=false;
	var lower_flag=false;
	var upper_flag=false;
	var symbol_flag=false;
	while (!number_flag && !lower_flag && !upper_flag ){
		number_flag=confirm("Do you want numbers?");
		lower_flag=confirm("Do you want lowercase letters?");
		upper_flag=confirm("Do you want UPPERCASE letters?");
		symbol_flag=confirm("Do you want symbols?");
	} 
	var checkNumber=true;
	var passLength=0;
	while (checkNumber){
		passLength=prompt("Enter the length of the password (7-20)");
		if ((passLength<7 || passLength>20) || isNaN(passLength)){
			alert("That is not a valid length.");
		}
		else{
		checkNumber=false;
		}
	}
	var possible_chars="";
	if (number_flag){
		possible_chars+=numbers;
	}
	if (lower_flag){
		possible_chars+=lowercase;
	}
	if (upper_flag){
		possible_chars+=uppercase;
	}
	if (symbol_flag){
		possible_chars+=symbols;
	}
	var length=possible_chars.length;
	var password=[];
	var counter=0;
	while (counter<passLength){
		password[counter]=possible_chars.charAt(Math.floor(Math.random()*length));
		counter++;
	}
	password=password.join("");
	alert(password);
}